package 线程.day2.demo5;

public class Tesst {
    public static void main(String[] args)throws Exception {
        A a=new A();
        Thread t=new Thread(a);
        System.out.println("准备开启线程....");
        t.start();
        Thread.sleep(100);
        t.interrupt();//要求子线程中断
        System.out.println("main中线程中断已发出。。。");
    }
}
